package com.taorenqi.business.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.taorenqi.business.R;

import java.util.Timer;
import java.util.TimerTask;


public class WelcomeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        Timer timer = new Timer();
        TimerTask tast = new TimerTask() {
            @Override
            public void run() {
                WelcomeActivity.this.startActivity(new Intent(getApplicationContext(), LoginActivity.class));
                WelcomeActivity.this.finish();
            }
        };
        timer.schedule(tast, 1000);
    }
}
